var input = document.querySelector('.container input');
input.addEventListener('input', function () {
  console.log('输入', this.value);
});

//函数防抖
function debounce(fn, delay) {
  var timerId;
  return function () {
    clearTimeout(timerId);
    timerId = setTimeout(() => {
      fn();
    }, delay);
  };
}

var newHandler=debounce(fn, delay)
